package com.ruoze.bdp.entity;

public class DataSourceVo {

    private Long id;

    private int userId;

    private String userName;

    private Long clusterId;    // 集群ID

    private String name;
    private String note;
    private String type;
    private String connectionParams;

    public DataSourceVo() {
    }

    public DataSourceVo(int userId, String userName, String name, Long clusterId, String note, String type, String connectionParams) {
        this.userId = userId;
        this.userName = userName;
        this.clusterId = clusterId;
        this.name = name;
        this.note = note;
        this.type = type;
        this.connectionParams = connectionParams;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getClusterId() {
        return clusterId;
    }

    public void setClusterId(Long clusterId) {
        this.clusterId = clusterId;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getConnectionParams() {
        return connectionParams;
    }

    public void setConnectionParams(String connectionParams) {
        this.connectionParams = connectionParams;
    }

    @Override
    public String toString() {
        return "DataSourceVo{" +
                "id=" + id +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", clusterId=" + clusterId +
                ", name='" + name + '\'' +
                ", note='" + note + '\'' +
                ", type='" + type + '\'' +
                ", connectionParams='" + connectionParams + '\'' +
                '}';
    }
}
